[WOOMOB-2397][POS Refunds M2] Part 2: Refunded items UI #15489
[WOOMOB-2397][POS Refunds M2] Part 2: Refunded items UI #15489samiuelson merged 5 commits intotrunkfrom
Conversation
|
|
cfff720 to
4f93620
Compare
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
...merce/src/main/kotlin/com/woocommerce/android/ui/woopos/orders/details/WooPosOrderDetails.kt
Show resolved
Hide resolved
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## trunk #15489 +/- ##
============================================
- Coverage 39.54% 39.53% -0.02%
Complexity 11223 11223
============================================
Files 2252 2252
Lines 129459 129543 +84
Branches 18127 18142 +15
============================================
+ Hits 51201 51212 +11
- Misses 73029 73103 +74
+ Partials 5229 5228 -1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
malinajirka
left a comment
There was a problem hiding this comment.
Thanks @samiuelson !
The changes look good and work as expected. The only thing which feels a bit off to me as a user - not technically related to this PR - is that the product row is without taxes:
...merce/src/main/kotlin/com/woocommerce/android/ui/woopos/orders/details/WooPosOrderDetails.kt
Show resolved
Hide resolved
Add ProductsSection, RefundedProductsSection, and ProductsShimmer composables to display refunded line items with loading state support. Update previews to include refunded items sample data.
4f93620 to
5f8c4f9
Compare
|
Thanks for review, @malinajirka!
I'm not sure if it's a good idea, because this would make the display logic inconsistent across Products and Refunded Products sections. In Products totals are displayed without taxes as well. In the next milestone M3, we are going to show more details of refund: |
Got it. To me this feels good enough, assuming we'll have the total taxes shown in the list/details of historical refunds in the Totals section. Though, I'll ask for a designer's feedback during call for testing, likely tomorrow.
This has been fixed within 5f8c4f9. |



Description
Adds the UI layer for displaying refunded line items in POS order details. This is the second of two PRs for WOOMOB-2397, building on #15488.
Changes:
ProductsSectioncomposable that handlesLineItemsState(loading shimmer / loaded items)RefundedProductsSectioncomposable for displaying refunded itemsProductsShimmercomposable for loading state placeholdertitleparameter inOrdersProductsfor reuse between products and refunded sectionsTesting instructions
Images/Gif
Screen_recording_20260306_170224.mp4